<?php
declare (strict_types = 1);

namespace app\validate\admin;

use think\Validate;

class AdminUserValidate extends Validate
{
    protected $field = [
        'account'   => '账户',
        'password'  => '密码',
        'nickname'  => '昵称',
        'is_lock'   => '锁定'
    ];

    protected $rule = [
        'account'   => 'require|alphaNum|max:15',
        'password'  => 'require|alphaNum|max:20',
        'nickname'  => 'require|max:20|chsDash',
        'is_lock'   => 'require|integer|in:0,1',
    ];

    protected $message = [];
}
